$(function(){

	// 百度地图API功能
	var map = new BMap.Map("myMap");    // 创建Map实例
	var top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});// 左上角，添加比例尺
	var top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
	var top_right_navigation = new BMap.NavigationControl({
	anchor: BMAP_ANCHOR_TOP_RIGHT, 
	type: BMAP_NAVIGATION_CONTROL_SMALL
	}); //右上角，仅包含平移和缩放按钮
	map.addControl(top_left_control);        
	map.addControl(top_left_navigation);     
	map.addControl(top_right_navigation); 
	map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放

	map.centerAndZoom(new BMap.Point(116.405793, 39.943445), 14);

	var polyline = new BMap.Polyline([
		new BMap.Point(116.409, 39.960),
		new BMap.Point(116.408, 39.953),
		new BMap.Point(116.405793, 39.943445),
		new BMap.Point(116.403493, 39.933445),
		new BMap.Point(116.401493, 39.913445)
	], {strokeColor:"blue", strokeWeight:2, strokeOpacity:1});   //创建折线
	map.addOverlay(polyline);   //增加折线

});